package com.eco.fanliapp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eco.fanliapp.common.response.ServerResponse;
import com.eco.fanliapp.entity.AppOrderDetail;
import com.eco.fanliapp.entity.AppUser;
import com.eco.fanliapp.entity.SyUserUnboundedOrderApply;
import com.eco.fanliapp.vo.AppOrderDetailVo;

import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jobob
 * @since 2019-12-19
 */
public interface ISyUserUnboundedOrderApplyService extends IService<SyUserUnboundedOrderApply> {

    ServerResponse addUnboundedOrder(Long orderId, AppUser user);

    ServerResponse selectUnboundedOrder(HashMap<String, Object> params);

    /**
     * 批量查询绑定订单
     *
     * @param list
     * @return
     */
    List selectBatchTableId(List<Integer> list);

    /**
     * 导出列表详情
     *
     * @param response
     * @param params
     */
    void exportDetailList(HttpServletResponse response, HashMap<String, Object> params);

    /**
     * 查询待绑定的订单详情
     *
     * @return
     */
    List<SyUserUnboundedOrderApply> selectOrderDetailBatch();

    /**
     * 查询失效订单
     *
     * @return
     */
    List<SyUserUnboundedOrderApply> selectBatchDate();

    ServerResponse getUnboundedOrderList(AppUser user, Integer pageNum, Integer pageSize);
}
